package Database;


import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserData {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String username;

    @Persistent
    private String password;

    public UserData(String username, String password) {
        this.setUsername(username);
        this.setPassword(password);
        
    }

	private void setId(Long id) {
		this.id = id;
	}

	private Long getId() {
		return id;
	}

	private void setUsername(String username) {
		this.username = username;
	}

	private String getUsername() {
		return username;
	}

	private void setPassword(String password) {
		this.password = password;
	}

	private String getPassword() {
		return password;
	}


}